function setTab(name,cursel,n){
	 	var more=document.getElementById("more");
 		more.style.display="none";
 		var reinfo=document.getElementById("infromation");
 		reinfo.style.display="none";
 		var resume=document.getElementById("resume");
 		resume.style.display="none";
 		 var save=document.getElementById("save");
 		save.style.display="none";
     for(i=1;i<=n;i++){
        var menu=document.getElementById(name+i);
        var con=document.getElementById("con_"+name+"_"+i);
        menu.className=i==cursel?"hover":"";
        con.style.display=i==cursel?"block":"none";
 }

}
function change(a){
		var con=document.getElementById("more");
		con.style.display=a==1?"block":"none";
		var con_one_1=document.getElementById("con_one_2");
		con_one_1.style.display="none";

}

function info(a){
	
		var reinfo=document.getElementById("infromation");
		reinfo.style.display=a==1?"block":"none";
		var con=document.getElementById("more");
		con.style.display="none";
		var con_one_1=document.getElementById("con_one_2");
		con_one_1.style.display="none";
		

}
function wirteResume(a){
		var resume=document.getElementById("resume");
		resume.style.display=a==1?"block":"none";
		var con=document.getElementById("more");
		con.style.display="none";
		var con_one_1=document.getElementById("con_one_2");
		con_one_1.style.display="none";
 		var reinfo=document.getElementById("infromation");
 		reinfo.style.display="none";
		

}
function save(a){
		var save=document.getElementById("save");
		save.style.display=a==1?"block":"none";
	 	var resume=document.getElementById("resume");
 		resume.style.display="none";
 		var con=document.getElementById("more");
		con.style.display="none";
		var con_one_1=document.getElementById("con_one_2");
		con_one_1.style.display="none";
 		var reinfo=document.getElementById("infromation");
 		reinfo.style.display="none";
}

function changemessage(){
	for (var i = 1; i < 7; i++) {
		var me = document.getElementById("me"+i);
		 me.readOnly = false;
		 me.className = "message1";
	};
	for (; i < 10; i++) {
		var me = document.getElementById("me"+i);
		  me.readOnly = false;
		  me.className = "ex1";
		}
	
}

function savemessage(){
	for (var i = 1; i < 7; i++) {
		var me = document.getElementById("me"+i);
		 me.readOnly = true;
		 me.className = "message";
	};
	for (; i < 10; i++) {
		var me = document.getElementById("me"+i);
		  me.readOnly = true;
		  me.className = "ex";
		}
	
}


		var curIndex = 0; 
		var timeInterval = 3000; 
		var arr = new Array(); 
		arr[0] = "1.jpg"; 
		arr[1] = "2.jpg"; 
		arr[2] = "1.jpg"; 
		setInterval(changeImg,timeInterval); 
function changeImg() { 
		    var obj = document.getElementById("img"); 
		    if (curIndex == arr.length-1) { 
		        curIndex = 0; 
		    } else { 
		        curIndex += 1; 
		      } 
		    obj.src = arr[curIndex]; 
} 